import request from '@/utils/request'

// 创建VIP服务
export function createServiceVipservices(data) {
  return request({
    url: '/system/service-vipservices/create',
    method: 'post',
    data: data 
  })
}

// 更新VIP服务
export function updateServiceVipservices(data) {
  return request({
    url: '/system/service-vipservices/update',
    method: 'put',
    data: data
  })
}

// 删除VIP服务
export function deleteServiceVipservices(id) {
  return request({
    url: '/system/service-vipservices/delete?id=' + id,
    method: 'delete'
  })
}

// 获得VIP服务
export function getServiceVipservices(id) {
  return request({
    url: '/system/service-vipservices/get?id=' + id,
    method: 'get'
  })
}

// 获得VIP服务分页
export function getServiceVipservicesPage(params) {
  return request({
    url: '/system/service-vipservices/page',
    method: 'get',
    params
  })
}
// 导出VIP服务 Excel
export function exportServiceVipservicesExcel(params) {
  return request({
    url: '/system/service-vipservices/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
